package com.mowh.gof23.behavioral.patterns.template.method;

/**
 * @author mowh1gd
 * @create 2023/10/20 14:27
 */
public class Main {
    public static void main(String[] args) {
        AbstractDisplay d1 = new CharDisplay('H');
        AbstractDisplay d2 = new StringDisplay("Hello, world.");
        AbstractDisplay d3 = new StringDisplay("你好世界");
        d1.display();
        d2.display();
        d3.display();
    }
}
